package com.example.soa_exp2.common;

import com.example.soa_exp2.domain.User;
import lombok.Data;
import lombok.Getter;
import org.springframework.hateoas.RepresentationModel;

@Data
public class UserModel extends RepresentationModel<UserModel> {

    private final User user;

    private final String message;

    public UserModel(User content) {
        this.user = content;
        this.message = null;
    }

    public UserModel(User content, String message){
        this.user = content;
        this.message = message;
    }
}
